import axios from 'axios'

export async function getBookTypes(){
    let resp = await axios.get('/api/web_book/type.do');
    console.log(resp);
    return resp.data;
}

export async function getBooksList(typeId,page=1,maxResult=10){
    let resp = await axios.get('/api/web_book/book.do',{
        params: {
            // 速写属性
            typeId,
            page,
            maxResult,
        }
    });
    console.log(resp);
    return resp;
}

